package com.szxy.miaosha.service;

import com.szxy.miaosha.domain.MiaoshaOrder;
import com.szxy.miaosha.vo.GoodsVo;

/**
 * @Author:zwer
 * @Date:2020/9/8 23:51
 * @Description:com.szxy.miaosha.service
 * @Version:1.0
 **/
public interface MiaoshaOrderService {

    /**
     * 根据用户ID和商品ID, 查询指定秒杀商品
     *
     * @param userId
     * @param GoodsId
     * @return
     */
    MiaoshaOrder getMiaoShaOrderByUserIdAndGoodsId(Long userId, Long GoodsId);

    /**
     * 下订单
     * @param goodsVo
     * @param userId
     */
    void insertOrder(GoodsVo goodsVo, Long userId, Long orderId);
}
